<?php
/**
* 	Bushido
 *
 * @category   Bushido
 * @package    Bushido_Dojo
 * @subpackage View
 * @copyright  Copyright (c) 2008-2009 Nathan Keyes
 * @author Nathan Keyes
 * @version    $Id: Dojo.php 7 2009-11-14 22:42:08Z nkeyes $
 */


/**
 * 
 * @author Nathan Keyes
 *
 */
class Bushido_Dojo_View_Helper_Dojo extends Zend_Dojo_View_Helper_Dojo
{ 
   
    /**
     * Initialize helper
     *
     * Retrieve container from registry or create new container and store in 
     * registry.
     * 
     * @return void
     */
    public function __construct()
    {
        $registry = Zend_Registry::getInstance();
        if (!isset($registry[__CLASS__])) {
            require_once 'Bushido/Dojo/View/Helper/Dojo/Container.php';
            $container = new Bushido_Dojo_View_Helper_Dojo_Container();
            $registry[__CLASS__] = $container;
        }
        $this->_container = $registry[__CLASS__];
    }
}
